﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>ajax of jquery(autocomplete)</title>
    <script type="text/javascript" src="../jquery/autocomplete/lib/jquery.js"></script>
    <script type='text/javascript' src='../jquery/autocomplete/lib/jquery.bgiframe.min.js'></script>
    <script type='text/javascript' src='../jquery/autocomplete/lib/jquery.ajaxQueue.js'></script>
    <script type='text/javascript' src='../jquery/autocomplete/lib/thickbox-compressed.js'></script>
    <link rel="stylesheet" type="text/css" href="../jquery/autocomplete/lib/thickbox.css" />
    <script type='text/javascript' src='../jquery/autocomplete/jquery.autocomplete.js'></script>    <link rel="stylesheet" type="text/css" href="../jquery/autocomplete/jquery.autocomplete.css" />
	<script language="javascript" type="text/javascript">	    function GetNameList()	    {	        $.ajax({	            url:'../ajax/companyabbs.ashx',	            type:'get',	            dataType:'html',	            timeout:1000,	            success: function(msg)	            {	                eval("var companylist=["+msg+"]");	                $("#mynames").autocomplete(companylist);	            }	        });	    };
	    $(document).ready(function(){GetNameList();});	</script></head>
<body>
     <form id="form1" autocomplete="off">
        <input type="text" id="mynames" style="width: 367px" />
        <div id="namelist"></div>
     </form>   
</body>
</html>
